package com.dru.drutils.location;


import android.content.Context;

import com.google.android.maps.MapView;
import com.google.android.maps.MyLocationOverlay;

public class AdvancedLocationOverlay extends MyLocationOverlay {
		Context mContext;
		AdvancedLocationOverlayEventListenter listener 				= null;

	public AdvancedLocationOverlay(Context context, MapView mapView ) {
		super(context.getApplicationContext(), mapView);
		mContext = context;
		
		//mapView.getOverlays().add(this);
		//this.enableMyLocation();
	}
	
	public void setEventListener ( AdvancedLocationOverlayEventListenter listener )
	{
		this.listener = listener;
	}
	
	@Override
	protected boolean dispatchTap() {
		if ( listener != null )
		{
			listener.dispatchTap();
			return true;
		}
		
		return false;
	}
	

}
